STEP 8: Now let's add some directions from our sprite.

  • From drag out Say for Time and drop it inside the loop.
  • Change the string in the .say() to "None shall pass without the secret word."

The stage will pause for 2 seconds each time the loop runs. Make sure you wait for your feedback!

The loop runs once for every letter in the string stored in password. How many times does your loop run?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)